{extend name="public/layer/login" /}
{block name="css"}
<link rel="stylesheet" href="__PUBLIC__/admin/assets/css/img_ver.css">
{/block}
{block name="style"}{/block}
{block name="js"}
<script src="__PUBLIC__/admin/assets/js/img_ver.js"></script>
{/block}
{block name="script"}
<script type="text/javascript">
	$(function () {
        imgVer({
            el:'$("#imgVer")',
            width:'260',
            height:'116',
            img:[
                '__PUBLIC__/admin/img/ver/ver.png',
                '__PUBLIC__/admin/img/ver/ver-1.png',
                '__PUBLIC__/admin/img/ver/ver-2.png',
                '__PUBLIC__/admin/img/ver/ver-3.png'
            ],
            success:function () {
				form_submit($("[rel-action=ver-form]"));
				$('.verBox').hide(800);
            },
            error:function () {
                // alert('错误什么都不执行')
            }
        });

        $("[rel-action=ver-form]").submit(function(){
            $('.verBox').show(800);
            return false;
        });
    });
</script>
{/block}
{block name="content"}
<body class="hold-transition login-page" style="max-width: 100%;height: 100%;overflow: hidden;background:url('http://bis.me.lx.com/static/background.jpg') center center;background-size:cover;">

<div class="login-box">
	<div class="login-logo">
		<b>代理商平台登录</b>
	</div>
	<div class="login-box-body" style="border-radius:5px;">
		{empty name="message"}
			<p class="login-box-msg">账户登录</p>
			{else /}
			<p class="login-box-msg text-red">{$message}</p>
		{/empty}
		<form action="{:url('login')}" method="post" rel-action="ver-form" style="border-radius:5px;">
			<div class="form-group has-feedback">
				<input type="text" name="username" value="" class="form-control" placeholder="请输入用户名" style="border-radius:5px;" />
				<span class="glyphicon glyphicon-envelope form-control-feedback" style="position: relative;left:295px;top: -25px;"></span>
			</div>
			<div class="form-group has-feedback">
				<input type="password" name="password" value="" class="form-control" placeholder="请输入密码" style="border-radius:5px;" />
				<span class="glyphicon glyphicon-lock form-control-feedback" style="position: relative;left:295px;top: -25px;"></span>
			</div>
			<div class="verBox" style='display: none;'>
				<div id="imgVer" style="display:inline-block;"></div>
			</div>
			<div class="form-group has-feedback">
				<button type="submit" class="btn btn-primary btn-block btn-flat" style="border-radius:5px;">登录</button>
			</div>
		</form>
		<!--div class="row">
            <div class="col-xs-6">
                <a href="{:url('signup')}">注册账户</a>
            </div>
            <div class="col-xs-6 text-right">
                <a href="{:url('forgot')}">找回密码</a>
            </div>
        </div-->
	</div>
</div>
</body>
{/block}